import { createRouter, createWebHashHistory, Router, RouteRecordRaw, RouterOptions } from "vue-router";

const routes: RouteRecordRaw[] = [
    {
        path: '/',
        name: 'Home',
        component: () => import('../view/HomeView.vue')
    },
    {
        path: '/user',
        name: 'User',
        component: () => import('../view/UserView.vue')
    },
] 

const options: RouterOptions = {
    history: createWebHashHistory(),
    routes
}

const router: Router = createRouter(options)

export default router